Viewport

data class Viewport(x: Double, y: Double, width: Double, height: Double, scale: Double)

Viewport for capturing screenshot.

Constructors

Viewport
Link copied to clipboard
fun Viewport(x: Double, y: Double, width: Double, height: Double, scale: Double)

Properties

height
Link copied to clipboard
val height: Double
Rectangle height in device independent pixels (dip).
scale
Link copied to clipboard
val scale: Double
Page scale factor.
width
Link copied to clipboard
val width: Double
Rectangle width in device independent pixels (dip).
x
Link copied to clipboard
val x: Double
X offset in device independent pixels (dip).
y
Link copied to clipboard
val y: Double
Y offset in device independent pixels (dip).

Sources

jvm source
Link copied to clipboard